    .text
    .org 0


#define DEF(n,a) \
    .globl n; n = a

#define NSTUB(name, addr)\
    .globl name ;\
    .weak name ;\
    name: ;\
	ldr  pc, = addr

#define NHSTUB(name, addr)\
    .globl name ;\
    name: ;\
	ldr  pc, = addr

#define STUB(addr)\
    .globl sub_ ## addr ;\
    sub_ ## addr: ;\
	ldr  pc, =0x ## addr


NSTUB(eventproc_PrintDefIso,0xFFA00E10)
NSTUB(eventproc_SetIsoValue,0xFF81FE94)
NSTUB(unknown_cache_, 0xFF8100D0)
NSTUB(sysHwInit0, 0xFF8102F0)
NSTUB(bzero, 0xFFB459D8)
NSTUB(intVecBaseSet, 0xFFB5E3D4)
NSTUB(cacheLibInit, 0xFFB52100)
NSTUB(excVecInit, 0xFFB5EE18)
NSTUB(sysHwInit, 0xFF810328)
NSTUB(cacheEnable_, 0xFFB520D4)
NSTUB(classLibInit, 0xFFB51D14)
NSTUB(taskLibInit, 0xFFB3F798)
NSTUB(qInit, 0xFFB43C70)
NSTUB(workQInit, 0xFFB3A9CC)
NSTUB(sysMemTop, 0xFF8103B4)
NSTUB(kernelInit, 0xFFB42424)
NSTUB(eventLibInit, 0xFFB43200) 
NSTUB(semBLibInit, 0xFFB4146C) 
NSTUB(semMLibInit, 0xFFB403BC) 
NSTUB(semCLibInit, 0xFFB41054) 
NSTUB(semQLibInit, 0xFFB4233C) 
NSTUB(wdLibInit, 0xFFB3C9F0) 
NSTUB(taskHookInit, 0xFFB47A58) 
NSTUB(memInit, 0xFFB4C6A8) 
NSTUB(memPartLibInit, 0xFFB4BE1C) 
NSTUB(vmMpuLibInit, 0xFFB45E44) 
STUB(FFB45DF4)
NSTUB(getErrorNumber, 0xFFB50E1C) 
NSTUB(printExc, 0xFFB50768) 
NSTUB(reboot, 0xFFB4A33C) 
NSTUB(usrClock, 0xFF810C74) 
NSTUB(sysClockConnect, 0xFFB32614) 
NSTUB(sysClockRateSet, 0xFFB32454) 
NSTUB(sysClockEnable, 0xFFB326B0) 
NSTUB(selectInit, 0xFFB4A150) 
NSTUB(usrBootLineParse, 0xFF8105B8) 
NSTUB(iosInit, 0xFFB4D8E0) 
NSTUB(ttyDrv, 0xFFB47120) 
NSTUB(usrSerialInit, 0xFF8108D8) 
NSTUB(hashLibInit, 0xFFB4E9A0) 
NSTUB(envLibInit, 0xFFB51440) 
NSTUB(sigInit, 0xFFB49788) 
STUB(FFB50C90)
NSTUB(logInit, 0xFFB4CC48) 
NSTUB(stdioInit, 0xFFB5571C) 
NSTUB(fioLibInit, 0xFFB50AE8) 
NSTUB(selTaskDeleteHookAdd, 0xFFB4A0E8) 
STUB(FFB5F728)
NSTUB(taskcreate_Startup, 0xFF8104C0) 
NSTUB(uai_FFB11D7C, 0xFFB11D7C)
NSTUB(uai_FFB0FF74, 0xFFB0FF74)
NSTUB(uai_FFB2E108, 0xFFB2E108)
NSTUB(EnableDispatch, 0xFFB1040C)
NSTUB(task_Startup, 0xFF810FAC)
NSTUB(CreateTask, 0xFFB106CC)

DEF(aStartup, 0xFF810F60)

STUB(FFAFE5BC)
NSTUB(write_multitaskAssert, 0xFFB1D14C)
NSTUB(RegProc_ExportAsEvent, 0xFFB06408)
NSTUB(RegProc_Shutdown, 0xFFB1C7C8)
NSTUB(install3VMemory, 0xFFB2EAA4)
NSTUB(romMenagerInit, 0xFFB29450)
STUB(FFB23DC8)
NSTUB(RegProc_PropertyService, 0xFFB23FD4)
NSTUB(RegProc_ErrorList, 0xFFB06188)
NSTUB(RegProc_FatalErrors, 0xFFB05824)
STUB(FFB09D5C)
NSTUB(RegProc_BlockUntilAfterTimeout, 0xFFB1D7A4)
STUB(FFB07740)
NSTUB(RegName_ResourceName, 0xFFB1A5CC)
NSTUB(memorySuite, 0xFFB15524)
NSTUB(sysClockRateSet_100, 0xFFB2C328)
STUB(FFB2BD6C)
NSTUB(serialIO_sub_FFB2BB14, 0xFFB2BB14)
STUB(FFAF84E4)
NSTUB(AdjustDefect, 0xFF9FDAF0)
NSTUB(CameraAdjustments, 0xFFA01970)
NSTUB(AssertPrepare, 0xFFB2F070)
NSTUB(writeproc_to_D184_D188, 0xFFB2E63C)
NSTUB(InitializeIntercom, 0xFFA5D580)
NSTUB(AfeGain_CmosParam, 0xFFAFA1C4)
NSTUB(EngInit, 0xFFA35E50)
NSTUB(EDmacPriorityManager, 0xFFA2BF38)
STUB(FFA2EA1C)
NSTUB(PowerMgrInit, 0xFFB2F1CC)
NSTUB(ClockInit, 0xFFB2C03C)
NSTUB(RegisterCapISR, 0xFFAFB9EC)
NSTUB(taskcreate_FaceSensor, 0xFFAFEA28)
NSTUB(REMInit, 0xFFAFBDA4)
NSTUB(taskcreate_ActSweep, 0xFFB00D10)
NSTUB(LCDInit, 0xFFAFD7C8)
STUB(FFAFD2DC)
NSTUB(DisplayInit, 0xFFA05DF8)
NSTUB(InitPowerSaveFunc, 0xFFA05A68)
STUB(FFA03B0C)
STUB(FFA05114)
NSTUB(PlayInit, 0xFFA0CF48)
NSTUB(LensTableInit, 0xFF95ACAC)
NSTUB(LensPoTableInit, 0xFF95DE1C)
NSTUB(FlyingInit, 0xFF8248F4)
NSTUB(CaptureInit_, 0xFF9FD864)
NSTUB(RegProc_Bathtub_Saturate, 0xFFA015D4)
STUB(FFA40390)
NSTUB(memset_193C8, 0xFF9FED88)
NSTUB(ColorAdjustments, 0xFFA11BCC)
STUB(FFA44A28)
NSTUB(LoadSystemInfo, 0xFF93E110)
NSTUB(SharedBufferInit, 0xFF942CE4)
NSTUB(FileCacheInit, 0xFF9444FC)
NSTUB(PackMemInit, 0xFF9470C4)
NSTUB(ImagePropInit, 0xFF93CB20)
NSTUB(taskcreate_DigProp, 0xFF93B460)
NSTUB(taskcreate_ShootMain, 0xFF8114B8)
NSTUB(taskcreate_OlcInfo, 0xFF94147C)
NSTUB(SomeISRprocs, 0xFFAF9FC8)
NSTUB(taskcreate_MainCtrl, 0xFF81BC64)
STUB(FFA024AC)
NSTUB(VShadingInit, 0xFFA02834)
NSTUB(DarkPassInit, 0xFFA4262C)
STUB(FFA43068)
NSTUB(BathTubInit, 0xFF9FFA6C)
NSTUB(PREPRO_sub_FFA38AA8, 0xFFA38AA8)
STUB(FFA453D8)
NSTUB(SetProjectionInit, 0xFF9FF240)
NSTUB(PREPRO_sub_FFA39480, 0xFFA39480)
NSTUB(DefsInit, 0xFFA00958)
NSTUB(WBDetectionInit, 0xFFA02BCC)
NSTUB(ObInit, 0xFFA029BC)
NSTUB(PREPRO_sub_FFA44254, 0xFFA44254)
NSTUB(DefsEvents, 0xFFA03034)
NSTUB(PREPRO_sub_FFA4597C, 0xFFA4597C)
NSTUB(PREPRO_sub_FFA45EDC, 0xFFA45EDC)
NSTUB(VShadingEvent, 0xFFA036B8)
NSTUB(PREPRO_sub_FFA466D4, 0xFFA466D4)
STUB(FFA24838)
NSTUB(HuffmanInit, 0xFFA23CC8)
NSTUB(PREPRO_sub_FFA3BD60, 0xFFA3BD60)
NSTUB(PREPRO_sub_FFA3D6D8, 0xFFA3D6D8)
NSTUB(PREPRO_sub_FFA3EEA8, 0xFFA3EEA8)
NSTUB(RESAMPLE_sub_FFA3C944, 0xFFA3C944)
STUB(FFA3E210)
STUB(FFA3F9DC)
STUB(FFA3A7D0)
STUB(FFA3B19C)
STUB(FFA37E3C)
STUB(FFA39F7C)
STUB(FFA3847C)
STUB(FFA2F1FC)
STUB(FFA30FD8)
STUB(FFA32268)
STUB(FFA32954)
STUB(FFA331BC)
STUB(FFA35354)
STUB(FFA31A24)
STUB(FFA369EC)
NSTUB(RGBInit, 0xFFA18CAC)
NSTUB(LuckyInit, 0xFFA39B48)
NSTUB(DebugMenager, 0xFFB1E838)
NSTUB(DbgMgr_sub_FFB1EB28, 0xFFB1EB28)
NSTUB(RegProc_DbgMgr, 0xFFB1F23C)
NSTUB(IInit, 0xFFB2F97C)
NSTUB(LangInit_, 0xFF883008)
NSTUB(LangInit, 0xFF918AF4)
NSTUB(ctrlMan_sub_FF9136D4, 0xFF9136D4)
NSTUB(ctrlSrv_sub_FF914388, 0xFF914388)
STUB(FF9182CC)
STUB(FF926E40)
STUB(FF917824)
STUB(FF91772C)
NSTUB(GUIInit, 0xFF82A298)
NSTUB(GUIApiCalls, 0xFF81C368)
NSTUB(PlayInit2, 0xFF82E740)
NSTUB(ColorBarInit, 0xFF86CD50)
NSTUB(LCDAdjustInit, 0xFF86CA50)
STUB(FFB29348)
NSTUB(CMOSParamInit, 0xFFAF9B88)
NSTUB(CameraSettingsInit, 0xFF93E120)
NSTUB(RegProc_BootDisk, 0xFF8111F8)
NSTUB(DDDInit, 0xFFA24A88)
NSTUB(TFTInit, 0xFF81B874)
NSTUB(registerResource, 0xFFB14854)
NSTUB(registerResource_env, 0xFFA76330)
NSTUB(USB1, 0xFFA7D594)
NSTUB(USB2, 0xFFA7BD9C)
STUB(FFA7BE14)
STUB(FFA7D778)
STUB(FFA8590C)
STUB(FFA5E0F4)
STUB(FFA76A30)
STUB(FFA6642C)
NSTUB(DCPClassInit, 0xFFA5E1DC)
NSTUB(RAPITransportUSBInit, 0xFFA6E7EC)
NSTUB(PTPRespondInit, 0xFFA67F5C)
NSTUB(PTPFrameworkInit, 0xFFA61BAC)
STUB(FF9DE698)
STUB(FFA70DE8)
NSTUB(EventProcServerInit, 0xFF9D9904)
STUB(FFA5D8A0)
NSTUB(DCPInit, 0xFFA5E42C)
STUB(FF9D74F8)
STUB(FF9D9AD0)
NSTUB(RAPIInit, 0xFFA70E20)
NSTUB(PrintInit, 0xFF95F228)
STUB(FF95EC54)
STUB(FF978AD0)
STUB(FF9EB94C)
NSTUB(USB3, 0xFFA76510)
NSTUB(TransMemoryInit, 0xFF9D9C98)
NSTUB(InitializeComCtrl, 0xFF9E3A1C)
NSTUB(FactoryModeRegisterPro, 0xFF94949C)
NSTUB(DPInit, 0xFF964420)
NSTUB(return_0, 0xFF97D44C)
STUB(FF98CF4C)
NSTUB(EdLedRegisterProcedures, 0xFFAFCAF0)
NSTUB(CallBacksInit, 0xFF811598)
STUB(FF82B2FC)
NSTUB(DPOF_Initialize, 0xFF94A298)
NSTUB(MonInit, 0xFF946EA0)
NSTUB(StartConsole, 0xFFB21768)

DEF(aUSBROOTDEVICEHANDLE, 0xFF810F80)
DEF(aU2VBUS, 0xFF810F80)
DEF(aUsbc20VbusSupp, 0xFF810F88)
DEF(aDEVICESPEED, 0xFF810F9C)







NSTUB(pressButton_,0xFF81FC44)


NSTUB(fopen, 0xFFB570FC)
NSTUB(fwrite, 0xFFB562F0)
NSTUB(fclose, 0xFFB577B4)
NSTUB(close, 0xFFB4E0E8)
NSTUB(open, 0xFFB4E47C)
NSTUB(write, 0xFFB4DF7C)


NSTUB(FIO_RemoveFile, 0xFFA9EA54)
NSTUB(FIO_CreateFile, 0xFFA9EA44)
NSTUB(FIO_CloseFile, 0xFFA9EA90)
NSTUB(FIO_WriteFile, 0xFFA9EA84)

NSTUB(taskCreateHookAdd, 0xFFB47A40)
NSTUB(taskDeleteHookAdd, 0xFFB47734)
NSTUB(eventproc_EdLedBlink, 0xFFAFCCD0)
NSTUB(eventproc_EdLedOn, 0xFFAFCCA4)
NSTUB(RiseEvent, 0xFFB0673C)

NSTUB(cfata_init, 0xFFFF9674)
NSTUB(cfata_end, 0xFFFF973C)
NSTUB(file_open, 0xFFFFA11C)
NSTUB(file_close, 0xFFFFA248)

NSTUB(SleepTask, 0xFFB10484)
NSTUB(ExitTask, 0xFFB10DB4)

NSTUB(OpenLogFile, 0xFFB20748)
NSTUB(CloseLogFile, 0xFFB20880)


.align 2
